package com.zfast.config.service;

import com.zfast.config.entity.User;
import com.zfast.config.vo.PageBean;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;
import java.util.Map;

/**
 * @Classname AdminService
 * @Description None
 * @Date 2019/7/16 12:20
 * @Created by WDD
 */
public interface AdminService extends UserDetailsService {

    User login(String username, String password);

    PageBean<User> queryPage(Map<String, Object> paramMap);

    int insertAdmin(User user);

    User selectById(String id);

    int delByAdminIds(List<String> ids);

    int editByAdmin(User user);

    User selectByName(String username);

    User selectByEmail(String email);
}
